package dmxGroupControl;

/**
 * Created by higginsonj on 4/11/2014.
 */
public enum FixtureType
{
    LED ("LED"),
    TUNGSTEN ("Tungsten"),
    EFFECT ("Effect");

    private String friendlyName;

    FixtureType(String friendlyName)
    {
        this.friendlyName = friendlyName;
    }

    public String GetFriendlyName()
    {
        return friendlyName;
    }

    public static FixtureType Parse(String friendlyName) throws IllegalArgumentException
    {
        try
        {
            return FixtureType.valueOf(friendlyName.toUpperCase());
        }
        catch (Exception e)
        {
            e.printStackTrace();
            return null;
        }
    }

}
